package br.com.empresa.view;

import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;

public class CadastroProdutoGUI extends JFrame {

	private JPanel contentPane;
	private JTextField txCodigo;
	private JTextField txNome;
	private JTextField txPreco;

	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					LoginUsuarioGUI frame = new LoginUsuarioGUI();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public CadastroProdutoGUI() {
		setTitle("SuperSoft");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 546, 401);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);

		JPanel panel = new JPanel();
		panel.setBackground(Color.WHITE);
		panel.setBounds(0, 0, 530, 363);
		contentPane.add(panel);
		panel.setLayout(null);

		JPanel panel_1 = new JPanel();
		panel_1.setBackground(Color.DARK_GRAY);
		panel_1.setBounds(0, 0, 530, 46);
		panel.add(panel_1);
		panel_1.setLayout(null);

		JLabel lblNewLabel = new JLabel("PRODUTO");
		lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
		lblNewLabel.setBounds(10, 11, 510, 20);
		lblNewLabel.setForeground(Color.WHITE);
		lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 16));
		panel_1.add(lblNewLabel);

		JPanel panel_2 = new JPanel();
		panel_2.setBackground(Color.DARK_GRAY);
		panel_2.setBounds(0, 342, 530, 21);
		panel.add(panel_2);
		panel_2.setLayout(null);

		JLabel lblDesenvolvidoPorRosiclia = new JLabel(
				"Desenvolvido por Rosicl\u00E9ia Frasson");
		lblDesenvolvidoPorRosiclia.setHorizontalAlignment(SwingConstants.RIGHT);
		lblDesenvolvidoPorRosiclia.setForeground(Color.WHITE);
		lblDesenvolvidoPorRosiclia.setBounds(0, 0, 530, 14);
		panel_2.add(lblDesenvolvidoPorRosiclia);

		JLabel lblNewLabel_1 = new JLabel("C\u00F3digo: ");
		lblNewLabel_1.setBounds(20, 67, 46, 14);
		panel.add(lblNewLabel_1);

		JLabel lblNome = new JLabel("Nome: ");
		lblNome.setBounds(20, 109, 46, 14);
		panel.add(lblNome);

		JLabel lblPreo = new JLabel("Pre\u00E7o: ");
		lblPreo.setBounds(20, 159, 46, 14);
		panel.add(lblPreo);

		JLabel lblFornecedor = new JLabel("Fornecedor:");
		lblFornecedor.setBounds(20, 214, 84, 14);
		panel.add(lblFornecedor);

		txCodigo = new JTextField();
		txCodigo.setBounds(95, 64, 86, 20);
		panel.add(txCodigo);
		txCodigo.setColumns(10);

		txNome = new JTextField();
		txNome.setBounds(95, 106, 408, 20);
		panel.add(txNome);
		txNome.setColumns(10);

		txPreco = new JTextField();
		txPreco.setBounds(95, 156, 86, 20);
		panel.add(txPreco);
		txPreco.setColumns(10);

		JComboBox cbFornecedor = new JComboBox();
		cbFornecedor.setBounds(95, 211, 217, 20);
		panel.add(cbFornecedor);

		JButton btnSalvar = new JButton("Salvar");
		btnSalvar.setBounds(315, 277, 89, 23);
		panel.add(btnSalvar);

		JButton btnLimpar = new JButton("Limpar");
		btnLimpar.setBounds(414, 277, 89, 23);
		panel.add(btnLimpar);
	}
}
